let arr = [1,3,3,4,1,3,5];

function delArrayReapet(arr) {
    let newArr = [];
    for(let i = 0;i < arr.length;i++) {
        
        let result = newArr.includes(arr[i]);
        if(!result) {
            newArr.push(arr[i]);
        }
    }

    return newArr;
}

console.log(arr,delArrayReapet(arr));